package cn.wolfcode.shop.redis;

import cn.wolfcode.shop.redis.key.BaseKeyPrefix;
import cn.wolfcode.shop.redis.key.KeyPrefix;
import lombok.Getter;
import lombok.Setter;

@Setter@Getter
public class SeckillGoodKeyPrefix extends BaseKeyPrefix {
    public static final KeyPrefix SECKILL_GOOD_HASH = new SeckillGoodKeyPrefix("seckillGoodListHash",-1);
    public static final KeyPrefix SECKILL_GOOD_STOCK = new SeckillGoodKeyPrefix("SECKILL_GOOD_STOCK",-1);
    public static final String GOOD_STOCK = "GOOD_STOCK";
    public static final KeyPrefix SECKILL_GET_PATH = new SeckillGoodKeyPrefix("seckillGetPath",3);
    public static final KeyPrefix SECKILL_VERIFYCODE_RESULT = new SeckillGoodKeyPrefix("seckillVerifyCodeResult",180);

    public SeckillGoodKeyPrefix(String prefix, int expireSeconds) {
        super(prefix, expireSeconds);
    }
    public static SeckillGoodKeyPrefix SECKILL_GOOD_LIS_PAGE = new SeckillGoodKeyPrefix("seckillGoodListPage",10);
}
